@echo off

rem 设置环境变量
set "SPRING_DATASOURCE_URL=jdbc:postgresql://192.168.31.235:5432/erupt?useUnicode=true&characterEncoding=UTF-8&timezone=Asia/Shanghai"
rem set "SPRING_DATASOURCE_URL=jdbc:postgresql://127.0.0.1:5432/ldar123?useUnicode=true&characterEncoding=UTF-8&timezone=Asia/Shanghai"
set "SPRING_DATASOURCE_USERNAME=postgres"
set "SPRING_DATASOURCE_PASSWORD=admin=123"
set "ERUPT_REDISSESSION=false"
set "ERUPT_UPLOADPATH=D:\erupt_frp_data"
set "JAVA_OPTS='-Xms256m -Xmx512m -Xss256k'"

rem 执行 Java 命令
rem java -Djava.io.tmpdir=D:\temp -Djava.library.path=D:\path\to\native\library -cp D:\erupt-frp\target\erupt-frp-1.12.18-B1.jar;D:\erupt-frp\target\lib\* com.erupt.frp.Application
rem java -jar target\erupt-frp-1.12.18-B1.jar
java -cp target\erupt-frp-1.12.19-B1.jar;target\lib\* com.erupt.frp.Application
